<template>
	<view class="index">
		<sdc-swiper />
		<sdc-tab />
		<sdc-service />
		<sdc-post />
		<sdc-example />
		<tabbar />
	</view>
</template>

<script>
	import sdcSwiper from './children/sdc-swiper.vue'
	import sdcTab from './children/sdc-tab.vue'
	import sdcService from './children/sdc-service.vue'
	import sdcPost from './children/sdc-post.vue'
	import sdcExample from './children/sdc-example.vue' 
	import tabbar from '@/components/tabbar.vue'
	
	import {mapActions} from 'vuex'
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			...mapActions(['appInit'])
		},
		onPullDownRefresh() {
			Promise.all([this.appInit(this)])
			.then(()=>{
				uni.stopPullDownRefresh()
			})
		},
		components:{
			sdcSwiper,
			sdcTab,
			sdcService,
			sdcPost,
			sdcExample,
			tabbar
		}
	}
</script>

<style lang="scss" scoped>
	
	
	
</style>
